﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;

namespace TestTool
{
    [TestFixture]
    class TestTransaction
    {
        public String Request { get; set; }
        public String Response { get; set; }

        [Test]
        public void DoTransaction1()
        {
            try
            {
                System.Console.WriteLine("request=" + this.Request);
                System.Console.WriteLine("response=" + this.Response);
                System.Console.WriteLine("test=");

                Console.ReadLine();

                Assert.AreEqual("a", "a");

                occurException();
            }
            catch (Exception e) 
            {
                Console.WriteLine(e.ToString());
                Assert.Fail(e.ToString());
            }
            
        }

        private void occurException()
        {
            String str = null;
            str.StartsWith("1");
        }

        [Test]
        public void DoTransaction2()
        {
            System.Console.WriteLine("request=" + this.Request);
            System.Console.WriteLine("response=" + this.Response);
            System.Console.WriteLine("test=");
            Assert.AreEqual("a", "ab");
        }
    }
}
